package com.z.sys.service.impl;

import java.util.List;
import java.util.ArrayList;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.z.common.web.vo.request.PageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.z.sys.mapper.UserPermissionSortMapper;
import com.z.sys.entity.UserPermissionSort;
import com.z.sys.service.IUserPermissionSortService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;

import java.util.Arrays;
/**
 * 快捷入口Service业务层处理
 *
 * @author z
 * @date 2024-01-03
 */
@Service
public class UserPermissionSortServiceImpl extends ServiceImpl<UserPermissionSortMapper,UserPermissionSort> implements IUserPermissionSortService {


    /**
     * 查询快捷入口
     * @param userPermissionSort 快捷入口
     * @param pageVo
     * @return 快捷入口 分页集合
     * */
    @Override
    public PageInfo<UserPermissionSort> selectUserPermissionSortPage(UserPermissionSort userPermissionSort, PageVo pageVo) {
        PageHelper.startPage(pageVo.getPage(), pageVo.getLimit());
        List<UserPermissionSort> data = selectUserPermissionSortList(userPermissionSort);
        return new PageInfo<>(data);
    }

    @Override
    public List<UserPermissionSort> selectUserPermissionSortList(UserPermissionSort userPermissionSort) {
        List<UserPermissionSort> data = baseMapper.selectUserPermissionSortList(userPermissionSort);
        return data;
    }
}
